From e57211cb1b4017406c776977fa62553798c96043 Mon Sep 17 00:00:00 2001 From: Havoc Pennington Date: Sat, 1 Dec 2001 18:30:49 +0000 Subject: [PATCH] add brief explanation of how to use GtkOptionMenu 2001-12-01 Havoc Pennington * gtk/tmpl/gtkoptionmenu.sgml: add brief explanation of how to use GtkOptionMenu --- docs/reference/ChangeLog | 5 +++++ docs/reference/gtk/tmpl/gtkoptionmenu.sgml | 10 ++++++++++ 2 files changed, 15 insertions(+) diff --git a/docs/reference/ChangeLog b/docs/reference/ChangeLog index 254f3da867..5b2ffc0ca2 100644 --- a/docs/reference/ChangeLog +++ b/docs/reference/ChangeLog @@ -1,3 +1,8 @@ +2001-12-01 Havoc Pennington + + * gtk/tmpl/gtkoptionmenu.sgml: add brief explanation of how to use + GtkOptionMenu + 2001-11-30 Matthias Clasen * gdk/tmpl/colors.sgml, gdk/tmpl/pixmaps.sgml, gdk/tmpl/dnd.sgml, diff --git a/docs/reference/gtk/tmpl/gtkoptionmenu.sgml b/docs/reference/gtk/tmpl/gtkoptionmenu.sgml index 3c53767718..7ce8202092 100644 --- a/docs/reference/gtk/tmpl/gtkoptionmenu.sgml +++ b/docs/reference/gtk/tmpl/gtkoptionmenu.sgml @@ -12,6 +12,16 @@ choice. When activated the #GtkOptionMenu displays a popup #GtkMenu which allows the user to make a new choice. + +Using a #GtkOptionMenu is simple; build a #GtkMenu, by calling +gtk_menu_new(), then appending menu items to it with +gtk_menu_shell_append(). Set that menu on the option menu +with gtk_option_menu_set_menu(). Set the selected menu item with +gtk_option_menu_set_history(); connect to the "changed" signal on +the option menu; in the "changed" signal, check the new selected +menu item with gtk_option_menu_get_history(). + + -- 2.30.2